<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        修改密码
    </div>
    <ol class="am-breadcrumb">
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['index/index']);?>" class="am-icon-home">首页</a></li>
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['user/index']);?>">后台</a></li>
        <li class="am-active">修改密码</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 修改密码
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">
                        <i class="am-icon-search"></i>
                        <input type="text" class="form-control form-control-solid" placeholder="搜索..."></div>
                </div>
            </div>


        </div>
        <div class="tpl-block ">

            <div class="am-g tpl-amazeui-form">


                <div class="am-u-sm-12 am-u-md-9">
                    <?php $form = ActiveForm::begin([
                        'id' => 'login-form',
                        'method' => 'post',
                        'options' => ['class' => "am-form am-form-horizontal"],
                        'enableClientValidation' => true,
                        'fieldConfig' => [
                            'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                        ]
                    ]) ?>

                        <div class="am-form-group">
                            <label for="user-email" class="am-u-sm-3 am-form-label">新密码</label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($model,'password1')->passwordInput(['class'=>'col-sm-6','placeholder'=>'输入你的新密码'])->label(false);?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-phone" class="am-u-sm-3 am-form-label">再次确认密码</label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($model,'password2')->passwordInput(['class'=>'col-sm-6','placeholder'=>'再次输入你的新密码'])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <?php echo Html::submitButton('保存修改', ['class'=>'am-btn am-btn-primary','name' =>'submit-button']) ?>
<!--                                <button type="button" class="am-btn am-btn-primary">保存修改</button>-->
                            </div>
                        </div>
                    <?php ActiveForm::end();?>
<!--                    </form>-->
                </div>
            </div>
        </div>

    </div>

</div>